package com.pubinfo.passbook.engine.cell.logic.medicine.payinformation;

import com.pubinfo.passbook.common.model.ruler.PayInformation;
import com.pubinfo.passbook.common.utils.UccpUtil;

import java.math.BigDecimal;

/**
 * 是否过期
 *
 * @author zhouch
 * @date 2022/3/15 9:07
 */
public class TimeoutUnit extends PayInformationLogicUnit {

    @Override
    public String getName() {
        return "是否过期";
    }

    @Override
    public Boolean then(PayInformation data, BigDecimal result) {
        return UccpUtil.isTimeout(data.getIssueDate());
    }
}
